package com.erp.erp_dao.InspectCargo;

import com.erp.erp_entitys.InspectCargo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IInspectCargoProductDAO {
    int deleteByPrimaryKey(Integer id);

    int insert(InspectCargoProductEntity record);

    int insertSelective(InspectCargoProductEntity record);

    InspectCargoProductEntity selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(InspectCargoProductEntity record);

    int updateByPrimaryKey(InspectCargoProductEntity record);

    List<InspectCargoProductEntity> selectProductByIcId(Integer icId);

    int deleteByIdList(@Param("idList") List<Integer> idList);

    List<CarryPlanVo> selectCarryPlanList(CarryPlanVo vo);

    List<InspectCargoProductEntity> selectCarryPlanProductByCpId(Integer cpId);

    List<InspectCargoProductEntity> selectCarryPlanProductByCarryPlanIds(@Param("idList") List<Integer> idList);

    List<StockVo> selectStockList(StockVo vo);

    List<InspectCargoProductEntity> selectStockProductByStockId(Integer stockId);

    List<InspectCargoProductEntity> selectStockProductByStockIds(@Param("idList") List<Integer> idList);

    int generateInspectCargoProductByShipmentPlanId(@Param("inspectCargoId")Integer inspectCargoId, @Param("shipmentNo")String shipmentNo);
}